
using QdbUnit;
using QdbUnit.Extensions;
using Qdb.Tests.Common.Assorted;

namespace Qdb.Tests.Common.Assorted
{
	public class UnknownReferenceDeactivationTestCase : AbstractQdbTestCase
	{
		public class Item
		{
			public string value;

			public Item(string value)
			{
				this.value = value;
			}
		}

		public virtual void Test()
		{
			UnknownReferenceDeactivationTestCase.Item item = new UnknownReferenceDeactivationTestCase.Item
				("my string");
			Db().Deactivate(item, int.MaxValue);
			Assert.AreEqual("my string", item.value);
		}
	}
}
